/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package repstream.View;

import com.ibm.media.bean.multiplayer.LinksArrayEditor;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JTextField;

/**
 *
 * @author bu2spencer
 */
public class BarMenu extends JMenuBar{
    private Frame fenetre;
    private JMenu menuFichier;
    private JMenu menuGestion;

    
            
    public BarMenu(final Frame fenetre){
        this.fenetre = fenetre;
        this.setBackground(Color.LIGHT_GRAY);
        
        menuFichier = new JMenu("Fichier");
        menuFichier.setBackground(Color.LIGHT_GRAY);
        JMenuItem fermer = new JMenuItem("Fermer");
        fermer.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent ae) {
               System.exit(0);
            }
        });
        menuFichier.add(fermer);
        this.add(menuFichier);
        
        menuGestion = new JMenu("Gestion des Chaines");
        menuGestion.setBackground(Color.LIGHT_GRAY);
        JMenuItem addLienUrl = new JMenuItem("Liens URL Video");
        addLienUrl.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent ae) {
               fenetre.getUrlFrame().setVisible(true);
            }
        });
        
        menuGestion.add(addLienUrl);
        this.add(menuGestion);
    }
    
}
